package com.ldw.spring;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @Author: dwLiu
 * @Date: 2019/12/6 11:53
 */
public class Main {

	public static void main(String[] args){

		AnnotationConfigApplicationContext ac =new AnnotationConfigApplicationContext(JavaConfig.class);
		User user = (User) ac.getBean("user");
		System.out.println(user.toString());
	}
}
